sameSite

open fun sameSite(sameSite: SameSite): Cookie.Builder

Sets the SameSite cookie attribute value that allows you to declare if your cookie should be restricted to a first-party or same-site context.

By default, the attribute value is set to LAX_MODE which means cookies are only set when the domain in the URL of the browser matches the domain of the cookie — a first-party cookie.

The NONE value requires that the secure attribute is set to true.

Return

this builder

Parameters

sameSite

the SameSite cookie attribute value